package com.ihmp.service;

import java.util.LinkedHashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ihmp.dao.IJobTitleDAO;
import com.ihmp.model.TJobTitle;

@Service
@Transactional
public class CJobTitleService implements IJobTitleService {
	
	@Autowired
	private IJobTitleDAO dao;

	public void saveOrUpdate(TJobTitle jobtitle) {
		dao.saveOrUpdate(jobtitle);
	}

	public void delete(TJobTitle jobtitle) {
		dao.delete(jobtitle);
	}

	public TJobTitle get(Integer id) {
		return dao.get(id);
	}

	public List<TJobTitle> list() {
		return dao.list();
	}

	public List<TJobTitle> list(int page, int recordPerPage) {
		return dao.list(page, recordPerPage);
	}
	
	public LinkedHashMap<Integer, String> getComboData(){
		return dao.getComboData();
	}
}
